package cn.zn.modules.expense.dao;

import cn.zn.modules.expense.entity.TpMainEntity;
import cn.zn.modules.expense.vo.ExpenseForMoney;
import cn.zn.modules.expense.vo.TaskVo;
import cn.zn.modules.report.vo.ReportCashierVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zn
 * @email zhunahao@qq.com
 * @date 2019-08-31 12:46:27
 */
@Mapper
public interface TpMainDao extends BaseMapper<TpMainEntity> {
    TpMainEntity findByAppontMainId(@Param("mainId") String mainId);

    /**
     * 查询出纳统计
     *
     * @return
     */
    List<ReportCashierVo> findReportCashier();

    /**
     * 经费占用情况
     *
     * @return
     */
    List<ExpenseForMoney> findByMoney(@Param("moneyTypeCode") String moneyTypeCode, @Param("projectCode") String projectCode, @Param("cateCode") String cateCode);

    /**
     * 查询流程任务信息
     *
     * @param taskId
     * @return
     */
    TaskVo findTaskInfo(String taskId);

    /**
     * 批量查询任务信息
     *
     * @param taskIds
     * @return
     */
    List<TaskVo> findTaskInfos(List<String> taskIds);
}
